﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VoucherInReturnDetail.aspx.cs"
    Inherits="SalesManagement.Modules.Sales.VoucherInReturnDetail" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Toolbar ID="tbMain" runat="server">
        <Items>
            <ext:Button runat="server" ID="btnNew" Icon="PageAdd" Text="Tạo mới">
                <ToolTips>
                    <ext:ToolTip ID="ToolTip9" runat="server" Title="Ctr+N">
                    </ext:ToolTip>
                </ToolTips>
                <%--    <Listeners>
                                    <Click Handler="BeforCheckNewClick();" />
                                </Listeners>--%>
            </ext:Button>
            <ext:ToolbarSeparator />
            <ext:Button runat="server" ID="btnUpdate" Text="Sửa" Icon="PageEdit">
            </ext:Button>
            <ext:ToolbarSeparator />
            <ext:Button runat="server" ID="btnDelete" Text="Xóa" Icon="Delete">
                <ToolTips>
                    <ext:ToolTip ID="ToolTip8" runat="server" Title="Shift+Delete">
                    </ext:ToolTip>
                </ToolTips>
                <%--    <Listeners>
                                    <Click Handler="ConfigDeleteObject()" />
                                </Listeners>--%>
            </ext:Button>
        </Items>
    </ext:Toolbar>
    <ext:Viewport ID="ViewPort1" runat="server" Layout="BorderLayout">
        <Items>
            <ext:BorderLayout ID="BorderLayout1" runat="server">
                <North MarginsSummary="30 0 0 0">
                    <ext:Panel ID="Panel1" runat="server" Frame="true" Height="130" Layout="FormLayout"
                        LabelWidth="120" Region="North">
                        <Items>
                            <ext:Panel ID="pnlFlexEven" runat="server" Layout="HBoxLayout" LabelWidth="120" AnchorHorizontal="99%">
                                <Defaults>
                                    <ext:Parameter Name="margins" Value="0 5 0 0" Mode="Value" />
                                </Defaults>
                                <LayoutConfig>
                                    <ext:HBoxLayoutConfig Padding="2" Align="Middle" />
                                </LayoutConfig>
                                <Items>
                                    <ext:TextField ID="TextField1" runat="server" FieldLabel="Số phiếu" Flex="1" />
                                    <ext:DateField ID="DateField2" runat="server" FieldLabel="Ngày" Flex="1" LabelWidth="60" />
                                    <ext:ComboBox ID="ComboBox1" runat="server" FieldLabel="Nhân viên" Editable="false"
                                        DataIndex="Title" LabelWidth="70" Flex="1">
                                        <Items>
                                            <ext:ListItem Text="Nguyễn Văn A" Value="hcm" />
                                            <ext:ListItem Text="Nguyễn Văn B" Value="hn" />
                                        </Items>
                                        <SelectedItem Value="hcm" />
                                    </ext:ComboBox>
                                </Items>
                            </ext:Panel>
                            <ext:Panel ID="Panel4" runat="server" Layout="HBoxLayout" LabelWidth="120" AnchorHorizontal="99%">
                                <Defaults>
                                    <ext:Parameter Name="margins" Value="0 5 0 0" Mode="Value" />
                                </Defaults>
                                <LayoutConfig>
                                    <ext:HBoxLayoutConfig Padding="2" Align="Middle" />
                                </LayoutConfig>
                                <Items>
                                    <ext:ComboBox ID="ComboBox2" FieldLabel="Khách hàng" runat="server" Editable="false"
                                        DataIndex="Title" Flex="1" />
                                    <ext:TextField ID="txtMST" FieldLabel="MST" runat="server" LabelWidth="70" Flex="1" />
                                </Items>
                            </ext:Panel>
                            <ext:Panel ID="Panel5" runat="server" Layout="HBoxLayout" LabelWidth="120" AnchorHorizontal="99%">
                                <Defaults>
                                    <ext:Parameter Name="margins" Value="0 5 0 0" Mode="Value" />
                                </Defaults>
                                <LayoutConfig>
                                    <ext:HBoxLayoutConfig Padding="2" Align="Middle" />
                                </LayoutConfig>
                                <Items>
                                    <ext:TextField ID="TextField2" FieldLabel="Địa chỉ" runat="server" Flex="1" />
                                </Items>
                            </ext:Panel>
                            <ext:Panel ID="Panel3" runat="server" Layout="HBoxLayout" LabelWidth="120" AnchorHorizontal="70%">
                                <Defaults>
                                    <ext:Parameter Name="margins" Value="0 5 0 0" Mode="Value" />
                                </Defaults>
                                <LayoutConfig>
                                    <ext:HBoxLayoutConfig Padding="2" Align="Middle" />
                                </LayoutConfig>
                                <Items>
                                    <ext:TextField ID="txtIndustryName" runat="server" FieldLabel="Chứng từ xuất" />
                                    <ext:Button runat="server" ID="Button1" Text="..." Icon="Magnifier">
                                    </ext:Button>
                                    <ext:Label ID="txtStatus" runat="server" Text="Đã thanh toán" />
                                </Items>
                            </ext:Panel>
                        </Items>
                    </ext:Panel>
                </North>
                <West>
                    <ext:Panel ID="pllist2" runat="server" Width="300" Layout="RowLayout">
                        <Items>
                            <ext:GridPanel ID="GridPanel1" runat="server" Margins="0 0 5 5" AutoExpandColumn="pro_ID"
                                RowHeight="1" Border="false">
                                <Store>
                                    <ext:Store ID="Store1" runat="server">
                                        <Reader>
                                            <ext:JsonReader IDProperty="pro_check">
                                                <Fields>
                                                    <ext:RecordField Name="pro_ID" />
                                                    <ext:RecordField Name="pro_Name" />
                                                    <ext:RecordField Name="pro_amount" />
                                                    <ext:RecordField Name="pro_unit" />
                                                </Fields>
                                            </ext:JsonReader>
                                        </Reader>
                                    </ext:Store>
                                </Store>
                                <ColumnModel ID="ColumnModel1" runat="server">
                                    <Columns>
                                        <ext:Column DataIndex="pro_ID" />
                                        <ext:Column DataIndex="pro_Name" Header="Tên hàng" />
                                        <ext:Column DataIndex="pro_amount" Header="Số lượng" />
                                        <ext:Column DataIndex="pro_unit" Header="ĐVT" />
                                    </Columns>
                                </ColumnModel>
                                <LoadMask ShowMask="true" />
                            </ext:GridPanel>
                        </Items>
                    </ext:Panel>
                </West>
                <Center>
                    <ext:Panel ID="Panel6" runat="server" Layout="FitLayout">
                        <Items>
                            <ext:GridPanel ID="GridPanel2" runat="server" AutoExpandColumn="pro_Name" Border="false"
                                RowHeight="1">
                                <Store>
                                    <ext:Store ID="Store2" runat="server">
                                        <Reader>
                                            <ext:JsonReader IDProperty="pro_id">
                                                <Fields>
                                                    <ext:RecordField Name="pro_id" />
                                                    <ext:RecordField Name="pro_Name" />
                                                    <ext:RecordField Name="pro_Color" />
                                                    <ext:RecordField Name="pro_Unit" />
                                                    <ext:RecordField Name="pro_Amount" />
                                                    <ext:RecordField Name="pro_Price" />
                                                    <ext:RecordField Name="pro_VAT" />
                                                    <ext:RecordField Name="pro_Acounting" />
                                                    <ext:RecordField Name="pro_Total" />
                                                </Fields>
                                            </ext:JsonReader>
                                        </Reader>
                                    </ext:Store>
                                </Store>
                                <ColumnModel ID="ColumnModel2" runat="server">
                                    <Columns>
                                        <ext:Column ColumnID="pro_id" DataIndex="pro_id" Header="Mã hàng" />
                                        <ext:Column DataIndex="pro_Name" Header="Tên hàng" />
                                        <ext:Column DataIndex="pro_Unit" Header="ĐVT" />
                                        <ext:Column DataIndex="pro_Amount" Header="Số lượng" />
                                        <ext:Column DataIndex="pro_Price" Header="Đơn giá" />
                                        <ext:Column DataIndex="pro_VAT" Header="VAT" />
                                        <ext:Column DataIndex="pro_Acounting" Header="Chiết khấu" />
                                        <ext:Column DataIndex="pro_Total" Header="Thành tiền" />
                                    </Columns>
                                </ColumnModel>
                                <LoadMask ShowMask="true" />
                            </ext:GridPanel>
                        </Items>
                    </ext:Panel>
                </Center>
            </ext:BorderLayout>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
